package ch.fhnw.qualiscan.application.components;

import ch.fhnw.qualiscan.Config;
import ch.fhnw.qualiscan.core.LayoutComponent;

import com.vaadin.ui.CustomLayout;
import com.vaadin.ui.Label;

import eu.livotov.tpt.i18n.TM;

@SuppressWarnings("serial")
public class HelperBox extends LayoutComponent {

	public HelperBox() {}

	@Override
	public void buildComponent() {
		
		CustomLayout custom = new CustomLayout("custom/sidebarComponent");
		
		addComponent(custom);
		Label title = new Label(TM.get("helper.title"));
		title.setIcon(Config.ICON_INFORMATION);
		
		custom.addComponent(title, "title");
		addStyleName("HelperWrapper");
		
		InformationBox infoBox = new InformationBox();
		custom.addComponent(infoBox, "content");
		
	}
	
}
